package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_node")
public class Node {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String addr;
    private String areaCode;
    private Integer createUserId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long regionId;
    private Integer businessId;
    private Integer ownerId;
    private String ownerName;
    private LocalDateTime updateTime;
    private LocalDateTime createTime;
}
